import time
from selenium import webdriver
from selenium.webdriver.common.by import By
class Test_Iframe_Switch():
    def setup(self):
        #这段重复利用高可以进行封装
        self.driver =webdriver.Chrome()
        self.driver.maximize_window()

    def test_iframe_test(self):
        self.driver.switch_to.frame()
        self.driver.switch_to.default_content()
        self.driver.switch_to.parent_frame()

         #实例未实现（可以看课程26分时的案例）